<?php

namespace App\Repositories;

use App\Models\StaffOrder;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class StaffOrderRepository
 * @package App\Repositories
 * @version December 8, 2018, 7:54 pm CST
 *
 * @method StaffOrder findWithoutFail($id, $columns = ['*'])
 * @method StaffOrder find($id, $columns = ['*'])
 * @method StaffOrder first($columns = ['*'])
*/
class StaffOrderRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'oid',
        'staff_id',
        'staff_name' => 'like',
        'card_id',
        'card_name'  => 'like',
        'card_type',
        'card_date',
        'order_no'   => 'like',
        'vpl_number' => 'like',
        'id_no'      => 'like',
        'mobile',
        'amount',
        'valid_time_start',
        'valid_time_end',
        'status'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return StaffOrder::class;
    }
}
